home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr28 / par300.zip / EXAMPL12.STX < prev    next >
Text File  |  1995-04-05  |  2KB  |  25 lines

  1. ;C
  2. ┌─────────────────────────────────────────────────────────────────────────────┐
  3. │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░    EXAMPLE #12    ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
  4. └─────────────────────────────────────────────────────────────────────────────┘
  5. ┌─────────────────────────────────────────────────────────────────────────────┐
  6. │                                                                             │
  7. │   THE INPUT FILE:  A list of people who owe you money for work done on      │
  8. │                    their car.  The data is not arranged in columns,         │
  9. │                    though; each field is separated by a slash ("/")         │
  10. │                    character -- this is an example of "free-form data".     │
  11. │                                                                             │
  12. │   WHAT WE WANT:    We want to extract the address, phone number and the     │
  13. │                    amount owed.  We omit the description of the work done.  │
  14. │                                                                             │
  15. │   HOW WE DO IT:    We use the PARSE command to extract the fields, and      │
  16. │                    use the APPEND command to group some of the data         │
  17. │                    together.  We then send the information to the output    │
  18. │                    file (using OUTEND), and place a separator line between  │
  19. │                    each person's information, to make the listing easier    │
  20. │                    to read.                                                 │
  21. │                                                                             │
  22. └─────────────────────────────────────────────────────────────────────────────┘
  23.  
  24. ;P
  25.